Generate a Web Services Mediator Client JAR File
This page last changed on Nov 28, 2008.
Oracle Data Service Integrator Documentation > Data Services Developer's Guide How To Generate a Web Services Mediator Client JAR FileThis section explains how to generate a Web Services Mediator Client JAR file. This JAR is required by developers writing Java clients that access data services through web services using the Static Mediator API. This section includes these topics: OverviewTo use the Static Mediator API in a web services-enabled client application, you must generate a Web Services Mediator Client JAR file. This JAR file contains the Static Mediator API interfaces, plus all the necessary SDO-compiled schemas for a dataspace. One Java method is generated for each data service function that is mapped to a WSDL operation. Method names match the mapped WSDL operation name. Client developers access data service functions through the web service by calling these methods. If the web service requires message-level security, you can add a credential provider and trust manager through initial context properties. For more information on security, see Configure Security for Web Services Applications. This topic explains how to generate a Web Services Mediator Client JAR file using these methods: Tip: You can also generate a Mediator Client JAR using the Administration Console. See the Oracle Data Service Integrator Adminstration Guide for details.
Using Workshop for WebLogicTo generate a Web Services Mediator Client JAR file using Workshop for WebLogic:
The Oracle Data Service Integrator Console view displays the export task status and any errors that may have occurred. You can click the Cancel button to cancel the export task before it has completed. Using the Command-Line ToolThis section explains now to generate the Web Services Mediator Client JAR file using Ant and presents example Ant commands. Before using the command-line tool, be sure you have the following:
To generate the JAR file, run this Ant command: ant -Dapproot=PROJECT_HOME -Dwslocator=locator -f BEA_HOME/odsi_10.3/bin/sdo_dspclientgen.xml Where:
Additional Ant Task OptionsThis section lists several optional features that you can use with the Ant tasks described in the previously:
Example 1This example specifies multiple .ws files. The command must be entered on one line. ant -Dapproot=/home/myprojects/myapp -Dwslocator='ld:MediatorTestDataServices/CustomerWeb.ws; ld:MediatorTestDataServices/OtherCustomerWeb.ws' -f /home/bea/odsi_10.3/bin/sdo_dspclientgen.xml Example 2This example generates a JAR that includes all of the .ws files in the dataspace. The command must be entered on line line. ant -Dapproot=/home/myprojects/myapp -Dwslocator=ALL -f /home/bea/odsi_10.3/bin/sdo_dspclientgen.xml |
Document generated by Confluence on Jan 13, 2009 15:58 |